@layout("/backend/common/_container.html"){
<style>
	.dhcc-con .form-group{
		margin-bottom: 5px;
	}
	.divMask {
		left: 0px;
		top: 0px;
		background: #cccccc !important;
		opacity: 0.5;
		filter: alpha(opacity=0);
		z-index: 5;
		pointer-events:none;
	}
	.no-data{
		position: relative;
		width: 100%;
		height: 100%;
		/*background: url(http://58.56.200.229:2480/imedical/web/images/no_data.png) center center no-repeat;*/
		background: url(/../../../../static/common/img/sds/no_data.png) center center no-repeat;
	}

	.container {
		display: flex;
		align-items: center;
		justify-content: flex-start;
	}
	.left-field {
		/* 左边字段的样式 */
	}

	.right-field {

	}


	.keyword {
		/* 查询关键字的样式 */
	}
	.details {
		width: 100%;
		height: auto;
		display: none;
	}

	.query {
		align-items: center;
		justify-content: flex-start;
		width:235px;
		float:left;
		/* 查询条件的样式 */
	}
	.ins{
		border-radius: 2px;
		border-color: #9ed2f2;
		background-color: #ffffff;
		display: inline-block;
		white-space: nowrap;
		margin: 0;
		padding: 0;
		border-width: 1px;
		border-style: solid;
		overflow: hidden;
		vertical-align: middle;
	}
	.bor{
		border :0px;
	}
</style>
<#Layout >
<#Layout_Left title='患者列表' width='499px' >
<div class="row row-lg">
	<div class="col-sm-12">
		<div class="dhcc-con dhcc-con-left dhcc-con-boder" >
			<div class="hidden-xs" id="EpisodeIDTableToolbar" role="group">
				<div class="container" style="padding-left: 0;width: 100%">
					<div class="left-field">
						<#InputCon id="recordNumber" name="病案号" />
						<a href="#" id="search" class="hisui-linkbutton" onclick = "SdsQcincase2.search2()" >查询</a>
						<a href="#" id="clear"  class="hisui-linkbutton" onclick = "SdsQcincase2.clear2()" >清空</a>
					</div>
					<div class="right-field " style="padding-left: 20px;padding-top: 0px;" >
						<span class="keyword">高级查询</span>
					</div>
				</div>
				<div class="details">
					<div class="query">
						@var dateMap={'dish':'出院时间','adm':'入院时间'};
						<#SelectCon id="searchType2" name="日期类型" map="${dateMap}" hasEmpty='false'/>
					</div>
					<div class="query">
						<#DateHisui id="startDate2" name="开始日期" value="${startDate}" />
					</div>
					<div class="query">
						<#DateHisui id="endDate2" name="结束日期" value="${endDate}" />
					</div>
					<div class="query">
						@var statusMap = {'':'全部', 'notReported':'待填写', 'notChecked':'已提交', 'checked':'已审核', 'reported':'已上报', 'uploadSuccess':'上报成功', 'uploadFailure':'上报失败' };
						<#SelectCon id="status" name="填报状态" map="${statusMap}" />
					</div>
					<div class="query">
						<#InputCon id="name" name="患者姓名" />
					</div>
					<div class="query">
						<#SelectCon id="dept" name="科室" map="${departMap!}"/>
					</div>
					<div class="query">
						<#InputCon id="doctor" name="主管医生" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<div style="position:fixed;left:250px;top:9px;z-index:99;">
		<a id="btnBatchUp" class="hisui-linkbutton yellow" style="float:left;margin-right: 10px;">批量上报</a>
		<a id="btnShowEntiy" class="hisui-linkbutton green" style="float:right">返回病种列表</a>
	</div>

	<#Table id="SdsQcincaseTable"/>
</div>
</#Layout_Left>
<#Layout_Center id='entityName' title=' '>
<div id = "p1" class="no-data " title=' '></div>
</#Layout_Center>
<div id="winQCEntity" class="hisui-dialog" style="width:1380px;height:640px">
	<div class="dhcc-con dhcc-con-boder">
		<div class="dhcc-con-left">
			@var dateMap={'dish':'出院时间','adm':'入院时间'};
			<#SelectCon id="searchType1" map="${dateMap}" hasEmpty='false'/>
			<#DateHisui id="startDate1" name="开始日期" value="${startDate}" />
			<#DateHisui id="endDate1" name="结束日期" value="${endDate}" />
			<#Button name="查询" icon="icon-w-find" clickFun="SdsQcincase2.search1()"/>
		</div>
		<div class="dhcc-con-right" style="width: auto;">
			<p>检索出<span id="entityNum"></span>份</p>
		</div>
	</div>
	<div class="dhcc-con dhcc-con-boder" style="display:flex;width: 100%;padding: 5px 30px;justify-content: space-between;background-color: #e7efdb;">
		<label style=" width: 15%;margin-bottom: 0;">待填报：<a style='cursor:pointer' onclick="SdsQcincase2.LoadItemSta('','','','notReported')"><span id="notReportedNum"></span></a></label>
		<label style=" width: 15%;margin-bottom: 0;">待审核：<a style='cursor:pointer' onclick="SdsQcincase2.LoadItemSta('','','','notChecked')"><span id="notCheckedNum"></span></a></label>
		<label style=" width: 15%;margin-bottom: 0;">已审核：<a style='cursor:pointer' onclick="SdsQcincase2.LoadItemSta('','','','checked')"><span id="checkedNum"></span></a></label>
		<label style=" width: 15%;margin-bottom: 0;">已上报：<a style='cursor:pointer' onclick="SdsQcincase2.LoadItemSta('','','','reported')"><span id="reportedNum"></span></a></label>
		<label style=" width: 15%;margin-bottom: 0;">上报成功：<a style='cursor:pointer' onclick="SdsQcincase2.LoadItemSta('','','','uploadSuccess')"><span id="uploadSuccessNum"></span></a></label>
		<label style=" width: 15%;margin-bottom: 0;">上报失败：<a style='cursor:pointer' onclick="SdsQcincase2.LoadItemSta('','','','uploadFailure')"><span id="uploadFailureNum"></span></a></label>
	</div>
	<div id="QCEntityList" style="height:510px; overflow-y: auto;">
		@var checkPerm = "0";
		@if(shiro.hasPermission("form:check")){
		@checkPerm = "1";
		@}
		<#Hidden id="checkPerm" value="${checkPerm}"/>
		@var submitPerm = "0";
		@if(shiro.hasPermission("form:submit")){
		@submitPerm = "1";
		@}
		<#Hidden id="submitPerm" value="${submitPerm}"/>
		<#Hidden id="formCheckType" value="${formCheckType}"/>
		<#Hidden id="enableIPQC" value="${enableIPQC!}"/>
	</div>
</#Layout>
<!-- 质控提示消息框 -->
<div id="mrListInfoDiv" style="display: none;width:100%;">
	<div style="padding:10px;" id="mrListInfoHtml">
	</div>
</div>
<script src="${ctxPath}/static/backend/sds/sdsqcincase2/sdsqcincase2.js"></script>
<script>
	$('.keyword').click(function() {
		$('.details').toggle();
	});
</script>
@}
